package com.pjedu.nbmallshop.mapper;


import com.pjedu.nbmallshop.entity.MallCarousel;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface CarouselMapper {
    //根据主键删除
    int deleteByPrimaryKey(Integer carouselId);
    //插入一条轮播图数据
    int insert(MallCarousel record);
    //插入一条轮播图数据
    int insertSelective(MallCarousel record);
    //根据id查找轮播图
    MallCarousel selectByPrimaryKey(Integer carouselId);
    //更新轮播图
    int updateByPrimaryKeySelective(MallCarousel record);
    //更新轮播图
    int updateByPrimaryKey(MallCarousel record);
    //根据分页要求,获取当前分页下的轮播图数据
    List<MallCarousel> findCarouselList(HashMap pageUtil);
    //获取总条数
    int getTotalCarousels();
    //批量删除
    int deleteBatch(Integer[] ids);

    List<MallCarousel> findCarouselsByNum(@Param("number") int number);
}